package com.b2b.modules.sys.utils;

import com.b2b.common.utils.SpringContextHolder;
import com.b2b.modules.sys.dao.AreaDao;
import com.b2b.modules.sys.entity.Area;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 区域工具类
 * Created by Soldier lee on 2016-11-20.
 */
public class AreaUtils {
    private static Logger logger = LoggerFactory.getLogger(AreaUtils.class);
    protected static AreaDao areaDao = SpringContextHolder.getBean(AreaDao.class);

    /**
     * 根据区域ID 获取区域对象信息
     * @param id
     * @return
     */
    public static Area getAreaById(String id){
        return areaDao.get(id);
    }


}
